package com.nb.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;



@Data
public class CreateRoleDTO {
    @NotBlank(message = "角色名称不能为空")
    private String name;

    @NotBlank(message = "角色编码不能为空")
    private String code;

    @NotNull(message = "数据权限不能为空")
    private Integer dataScope; // 1-全部, 2-本部门, 3-自定义
}